"""
@author: Sergiy Tsymbalyuk
"""

import logging

from repoze.what.plugins.pylonshq import ControllerProtector

from chowa.lib.site.crud import FlatCrudController
from hrms.lib.predicates import profile
from hrms.model.organization import Award

log = logging.getLogger(__name__)

@ControllerProtector(profile())
class AwardsController(FlatCrudController):
    __model__ = Award
    __columns__ = ['type', 'institution', 'district', 'order']
    __edit_columns__ = ['employee', 'type', 'institution', 'district', 'order']
